<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<?php  $this->Form->cuenta($this->Access->getMy('id'));?>	
	<div class="desplegable">
		<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div align="right" style="font-weight:bold; font-size:11px; padding-bottom:8px; color:#0858A2;">
	<td><h4><?php __('Total Comentarios:  '.$contador_total)?></h4></td>
</div>
<div class="comentarios index">
<fieldset>
	<legend><?php __('Comentarios: '.$posts['Post']['titulo']);?></legend>				
		<?php  echo $this->Html->link($this->Html->image('volver.png', array('alt'=> __('Posts - Comentarios', true), 'border' => '0')),
												'../comentarios/posts_comentarios/',array('escape' => false));?> 	
        <?php echo $this->Html->link($this->Html->image('nuevo_comentario.png', array('alt'=> __('Nuevo Comentario', true), 'border' => '0')),
												'../comentarios/add/'.$posts['Post']['id'],array('escape' => false));?>	    
	
	<table class="tabla_formulario" cellpadding="0" cellspacing="0">
	<tr>	
			<th><?php echo $this->Paginator->sort('contenido');?></th>
			<th><?php echo $this->Paginator->sort('Usuario','Comentario.user_id');?></th>
			<th><?php echo $this->Paginator->sort('Creado','Comentario.created');?></th>
			<th><?php echo $this->Paginator->sort('Modificado','Comentario.modified');?></th>
			<th class="actions"><?php __('');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($comentarios as $comentario):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $comentario['Comentario']['contenido']; ?>&nbsp;</td>
		<td><?php echo $comentario['User']['nombre_completo'];?></td>
		<td><?php echo $comentario['Comentario']['created']; ?>&nbsp;</td>
		<td><?php echo $comentario['Comentario']['modified']; ?>&nbsp;</td>
		<td class="actions">
		     <!-- echo echo $this->Html->link(__('Ver', true), array('action' => 'view', $comentario['Comentario']['id'])); ?> -->
			 <!-- echo $this->Html->link(__('Editar', true), array('action' => 'edit', $comentario['Comentario']['id'])); ?>  --> 
			 <!--echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $comentario['Comentario']['id']), null, sprintf(__('Desea eliminar el Comentario %s?', true), $comentario['Comentario']['id'])); ?> -->
		</td>
	</tr>
   <?php endforeach; ?>    
	</table>
	<div align="right" style="font-weight:bold; font-size:11px; padding-bottom:8px; color:#0858A2;">
	       <td><h4><?php __('Comentarios Documento:  '.$contador)?></h4></td>
     </div>
	</fieldset>
	<p class="pagina">
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de  un total de %count%,
		 														   empieza con el registro %start%, termina en %end%', true)));?>
	</p>

<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
</div>
</div>